# include<stdio.h>
int main(void)
{	
	FILE* fp = fopen("hello.txt","w");
	if(fp == NULL)
	{
		perror("fopen() failed");
		return 1;
	
	}
	fprintf(fp,"hello world\n");

	fclose(fp);
	return 0;
}